de.cebis.moccapart.calendar.domain
Class CalendarComponentCategory

java.lang.Object
  extended by de.cebis.moccabox.domain.AbstractConceptualObject
      extended by de.cebis.moccapart.calendar.domain.CalendarComponentCategory
All Implemented Interfaces:
IPersistentConcept, java.io.Serializable

public class CalendarComponentCategory
extends AbstractConceptualObject
implements java.io.Serializable

Author:
weichelt To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Field Summary
static java.lang.String PROP_COLOUR
           
static java.lang.String PROP_DURATION
           
static java.lang.String PROP_DURATIONTEXT
           
static java.lang.String PROP_IMAGE
           
static java.lang.String PROP_NAME
           
 
Fields inherited from interface de.cebis.moccabox.domain.IPersistentConcept
PROP_CREATION_DATE, PROP_ID, PROP_LAST_EDIT_DATE, PROP_LAST_EDIT_USER
 
Constructor Summary
CalendarComponentCategory()
           
CalendarComponentCategory(java.lang.Long _iD)
          Constructor for primary key
 
Method Summary
 java.lang.String getColour()
          Returns the colour to be displayed for the CalendarComponentCategory.
 double getDuration()
          Returns the default duration for a component of this category.
 java.lang.String getDurationText()
          Returns the duration of the event in hours and minutes.
 java.lang.String getImage()
          Returns a given image name to represent the category.
 java.lang.String getName()
          Returns the name to be displayed for the CalendarComponentCategory.
 void setColour(java.lang.String colour)
          Sets the colour to be displayed for the CalendarComponentCategory.
 void setDuration(double duration)
          Sets the default duration for a component of this category.
 void setImage(java.lang.String image)
          Sets a given image name to represent the category.
 void setName(java.lang.String name)
          Sets the name to be displayed for the CalendarComponentCategory.
 
Methods inherited from class de.cebis.moccabox.domain.AbstractConceptualObject
getCreationDate, getId, getLastEditDate, getVersion, setCreationDate, setId, setLastEditDate, setVersion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_NAME

public static final java.lang.String PROP_NAME
See Also:
Constant Field Values

PROP_DURATION

public static final java.lang.String PROP_DURATION
See Also:
Constant Field Values

PROP_DURATIONTEXT

public static final java.lang.String PROP_DURATIONTEXT
See Also:
Constant Field Values

PROP_COLOUR

public static final java.lang.String PROP_COLOUR
See Also:
Constant Field Values

PROP_IMAGE

public static final java.lang.String PROP_IMAGE
See Also:
Constant Field Values
Constructor Detail

CalendarComponentCategory

public CalendarComponentCategory()

CalendarComponentCategory

public CalendarComponentCategory(java.lang.Long _iD)
Constructor for primary key

Method Detail

setName

public void setName(java.lang.String name)
Sets the name to be displayed for the CalendarComponentCategory.

Parameters:
name - The name to be displayed.

getName

public java.lang.String getName()
Returns the name to be displayed for the CalendarComponentCategory.

Returns:
The name to be displayed.

setDuration

public void setDuration(double duration)
Sets the default duration for a component of this category.

Parameters:
duration - The default duration.

getDuration

public double getDuration()
Returns the default duration for a component of this category.

Returns:
The default duration.

getDurationText

public java.lang.String getDurationText()
Returns the duration of the event in hours and minutes.

Returns:
Duration as String in the format 3h 20min

setColour

public void setColour(java.lang.String colour)
Sets the colour to be displayed for the CalendarComponentCategory.

Parameters:
colour - The colour to be displayed.

getColour

public java.lang.String getColour()
Returns the colour to be displayed for the CalendarComponentCategory.

Returns:
The colour to be displayed.

setImage

public void setImage(java.lang.String image)
Sets a given image name to represent the category.

Parameters:
image -

getImage

public java.lang.String getImage()
Returns a given image name to represent the category.

Returns: